package com.onehouse.infrastructure.repository;

import com.onehouse.domain.room.model.RoomEntity;
import com.onehouse.domain.room.repository.IRoomRepository;
import com.onehouse.infrastructure.dao.RoomDao;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public class RoomRepository  implements IRoomRepository {
    @Resource
    private RoomDao roomDao;

    @Override
    public RoomEntity save(RoomEntity room) {
        return null;
    }

    @Override
    public Optional<RoomEntity> findByRoomNumber(String roomNumber) {
        return Optional.empty();
    }

    @Override
    public List<RoomEntity> findAll() {
        return List.of();
    }

    @Override
    public void deleteById(Long roomId) {

    }

    @Override
    public boolean existsByRoomTypeId(Long typeId) {
        return roomDao.existsByRoomTypeId(typeId);
    }
}
